package collection;

import java.util.Arrays;
import java.util.List;

public class list3 {
    public static void main(String[] args) {
        List<String> list = Arrays.asList("a", "b", "c", "d", "e", "f", "g");
        List<String> strings = list.subList(0, 3);
        System.out.println(strings);
    }
}
